package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *  系统参数配置表
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("parameter")
public class Parameter implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;

	private String xcxAppid;

	private String xcxAppsecret;

	private String mallName;

	private String platformTitle;

	private String mallTelphone;

	private String mallEmail;

	private String mallVersion;

	private String mallAddress;

	private Double mallLongitude;

	private Double mallLatitude;

	private Integer isDefault;

	private String vipContent;

	//防护措施
	private String conservatoryMeasure;

	private String dUrl;

	private String dLoginName;

	private String dPassword;

	private String dToken;

	private Date dExpireTime;

	/**
	 *  小程序的
	 */
	private String accessToken;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date acLastTime;


	/**
	 *  琤一数字公众号的
	 */
	private String accessTokenMpCy;

	/**
	 *  琤一数字公众号的
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date acLastTimeCy;

	/**
	 *  (菲舍尔)断路器 token
	 */
	private String fsrAccessToken;
	/**
	 *  获取token的过期时间
	 */
	private Date fsrLastTokenTime;

	private String fsrRefreshToken;

	/**
	 *  access_token 有效期是 2 小时，过期后需调用 token 刷新接口获取新的access_token,并使用新的 access_token 访问业务接口
	 *  刷新时间
	 */
	private Date fsrRefreshTime;

	/**
	 *  资产id
	 */
	private String fsrAssetId;

	/**
	 *  测量记录的表名
	 */
	private String rangeRecordTableName;

	/**
	 *
	 */
	private String surveyRecordInfoName;

}
